package com.songjia.springboot.configurationProperties;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * Spring boot入口类
 * 
 * 注意：定义的读取配置文件的配置类要在spring boot的入口类上加入最后注意在spring Boot入口类加上@EnableConfigurationProperties注解
 *
 */
@SpringBootApplication
//使用自定义properties配置文件需要在spring boot入口类上加入@EnableConfigurationProperties配置
@EnableConfigurationProperties({ApplicationSettings.class,JdbcConnectionSettings.class})
public class WebApp {
	public static void main(String[] args) {
		SpringApplication.run(WebApp.class, args);	
	}
}
